Balance of initial frame and limitation of traffic

ABSTRACT

A method includes: obtaining a video data file and an audio data file of streaming media content to be played from a server, when the streaming media content is played using DASH; obtaining a video bitrate from the video data file, and obtaining an audio bitrate from the audio data file; and determining a capacity of a video buffer area and a capacity of an audio buffer area according to the video bitrate and the audio bitrate.

CROSS REFERENCE TO RELATED APPLICATION

The present application is a continuation under 35 U.S.C. 111(a) of PCTInternational Application No. PCT/CN2019/128418, filed on Dec. 25, 2019,which claims priority to Chinese patent application No. 201910092901.0,filed on Jan. 30, 2019, the entire contents of which are herebyincorporated by reference in their entirety for all purposes.

TECHNICAL FIELD

The present application relates to a technical field of audio and videoplaying, and particularly to a balance of initial frame and limitationof traffic.

BACKGROUND

With the continuous development of Internet and smart terminals, moreand more users choose to use smart terminals (such as mobile phones andcomputers) to play audio, video and other streaming media; users canobtain video contents and audio contents from network servers throughsmart terminals, and play them on the smart terminal.

SUMMARY

One aspect of the present application provides a method, including:

obtaining a video data file and an audio data file of streaming mediacontent to be played from a server, when the streaming media content isplayed using Dynamic Adaptive Streaming over HTTP (DASH);

obtaining a video bitrate from the video data file, and obtaining anaudio bitrate from the audio data file; and

determining a capacity of a video buffer area and a capacity of an audiobuffer area according to the video bitrate and the audio bitrate.

Another aspect of the present application further provides a computingdevice, including: one or more processors; a memory storing one or moreprograms configured to be executed by the one or more processors, theone or more programs comprising instructions for:

obtaining a video data file and an audio data file of streaming mediacontent to be played from a server, when the streaming media content isplayed using Dynamic Adaptive Streaming over HTTP (DASH);

obtaining a video bitrate from the video data file, and obtaining anaudio bitrate from the audio data file; and

determining a capacity of a video buffer area and a capacity of an audiobuffer area according to the video bitrate and the audio bitrate.

Another aspect of the present application further provides anon-transitory computer-readable storage medium, storing one or moreprograms comprising instructions that, when executed by one or moreprocessors of a computing device, cause the computing device to performoperations including:

obtaining a video data file and an audio data file of streaming mediacontent to be played from a server, when the streaming media content isplayed using Dynamic Adaptive Streaming over HTTP (DASH);

obtaining a video bitrate from the video data file, and obtaining anaudio bitrate from the audio data file; and

determining a capacity of a video buffer area and a capacity of an audiobuffer area according to the video bitrate and the audio bitrate.

BRIEF DESCRIPTION OF THE DRAWINGS

Upon reading the detailed description of some embodiments below, variousother advantages and benefits will become apparent to those of ordinaryskill in the art. The drawings are only for the purpose of illustratingsome embodiments and are not to be considered as limiting the presentapplication. Moreover, the same reference numerals are used throughoutthe drawings to refer to the same parts. In the drawings:

FIG. 1 illustrates a flowchart of a method of balancing initial frameand limiting traffic according to some embodiments;

FIG. 2 illustrates a schematic diagram of a program module of a deviceof balancing initial frame and limiting traffic according to someembodiments; and

FIG. 3 illustrates a diagram of hardware architecture of a computingdevice according to some embodiments.

DETAILED DESCRIPTION OF EMBODIMENTS

To make the embodiments and advantages of the present application morecomprehensible, the present application is described in further detailbelow with reference to embodiments and the accompanying drawings. Itshould be understood that the specific embodiments described herein aremerely used for explaining the present application, and are not intendedto limit the present application. All other embodiments obtained bythose skilled in the art based on the embodiments of the presentapplication without creative efforts shall fall within the protectionscope of the present application.

The inventors recognized that, when playing audio, video, and otherstreaming media, how to quickly obtain an initial frame content andrapidly start playing has become a technical problem to be solved.

According to some embodiments, the method of balancing initial frame andlimiting traffic provided by the present application is described belowwith reference to the accompanying drawings.

FIG. 1 illustrates a flowchart of a method of balancing initial frameand limiting traffic according to some embodiments, and the method isapplied to a DASH client, as shown in FIG. 1, the method includes thefollowing steps:

Step S101, obtaining a video data file and an audio data file ofstreaming media content to be played from a server, when the streamingmedia content is played using DASH.

DASH (Dynamic Adaptive Streaming over HTTP) is an adaptive bitratestreaming technology that enables high-quality streaming media to bedelivered over the Internet through a traditional HTTP web server. Inrelated audio and video playing technologies, audio content and videocontent are contained in one streaming media file, and the clientobtains the streaming media file from the server and performs audio andvideo playing through parsing the streaming media file. However in DASHtechnology, the audio content and the video content are separated, andthe client needs to obtain video data files and audio data filesseparately from the server and perform audio and video playing throughparsing the video data files and audio data files. In addition, DASHsplits streaming media content into multiple segments, each of thesegments contains a playable content of a certain length (for example,10 seconds), and each of the segments is corresponding to multipledefinitions for using, and a client can choose to download and play thesegments with a given code streaming according to current networkconditions. Compared with related audio and video playing technologies,streaming media content of different code streaming can be switched atany time during playing streaming media content using DASH technology.

Specifically, the step S101 includes:

sending a request to obtain the video data file and the audio data fileto a server, and receiving the video data file and the audio data filereturned by the server.

Step S102, obtaining a video bitrate from the video data file andobtaining an audio bitrate from the audio data file.

Specifically, the step S102 includes:

parsing the video data file to obtain video bitrate information in afile header area; and parsing the audio data file to obtain audiobitrate information in a file header area.

In practical applications, the video bitrate of the video content is tentimes of the audio bitrate of the audio content, for example, the videobitrate of the video content is 2 MB/s and the audio bitrate of theaudio content is 200 kB/s.

Step S103, determining a capacity of a video buffer area and a capacityof an audio buffer area according to the video bitrate and the audiobitrate.

The video buffer area is a preset memory for buffering video content,and the audio buffer area is a preset memory for buffering audiocontent. In some embodiments, the capacity of both the video buffer areaand audio buffering can be adjusted dynamically.

The method of balancing initial frame and limiting traffic can improvedownloading speed of downloading video content, and achieve to rapidlystart playing, thereby improving user's experience.

Specifically, in step S103, the capacity of the video buffer area andthe capacity of the audio buffer area can be determined by one of thefollowing two ways.

The first way includes:

calculating a first capacity required to play a first preset number ofvideo frames according to the video bitrate, and selecting the firstcapacity as the capacity of the video buffer area; and

calculating a second capacity required to play the first preset numberof audio frames according to the audio bitrate, and selecting the secondcapacity as the capacity of the audio buffer area.

According to some embodiments, a capacity required to play the initialtwo frames of video content calculated according to the video codestream and a capacity required to play the initial two frames of audiocontent calculated according to the audio bitrate are respectivelyregarded as the capacity of the video buffer area and the capacity ofthe audio buffer area.

Since in the process of playing audio and video using DASH, audio andvideo are played with the frame as the minimum unit, that is, when aframe of the video content is completed buffering, the frame of thevideo content is played. Therefore, in some embodiments, to achieve thetechnical effect of quickly starting playing, the capacity required toplay the initial two frames of video content and the capacity requiredto play the initial two frames of audio content are respectivelyregarded as the initial capacity of the video buffer area and theinitial capacity of the audio buffer area. It should be noted that, toachieve the technical effect of quickly starting playing, in someembodiments, the capacity of the initial video buffer area and thecapacity of the initial audio buffer area are determined to be theminimum value. Since the video bitrate is much larger than the audiobitrate, the determined capacity of the video buffer area will also bemuch larger than the determined capacity of the audio buffer area, whichcauses the video content to occupy more bandwidth during a bufferingprocess, and enables the same number of frames of video content andaudio content to be downloaded in the same time.

The second way includes:

determining a proportion of audio and video bitrate according to thevideo bitrate and the audio bitrate, and dividing a preset totalcapacity of initial buffering into the capacity of the video buffer areaand the capacity of the audio buffer area according to the proportion ofaudio and video bitrate.

It should be noted that the inventors understand that the capacity ofthe video buffer area and the capacity of the audio buffer area areusually determined to be the same, for example, the capacity of thevideo buffer area and the capacity of the audio buffer area areseparately determined to be 2 MB. Therefore, video content and audiocontent occupy the same bandwidth during the buffering process,resulting that in the same downloading time, the buffered audio contentis much larger than the buffered audio content. In addition, in theprior art, the capacity of the video buffer area and the capacity of theaudio buffer area are stable.

In some embodiments, the preset total capacity of initial buffering isdivided according to the proportion of the video bitrate and the audiobitrate. For example, if the proportion of the video bitrate to theaudio bitrate is 10:1, the preset total capacity of initial buffering isdivided into two parts according to the proportion of 10:1, and thecapacity of one part is 10 times the capacity of the other part. Inaddition, the total capacity of initial buffering is limited so that theinitial capacity of the video buffer area and the initial capacity ofthe audio buffer area can buffer initial frame of video content andinitial frame of audio content, thereby achieving the effect of quicklyoutputting the initial frame of the streaming media content.

In some embodiments, no matter which of the above methods is adopted,the capacity of the video buffer area and the capacity of the audiobuffer area are configured according to a proportional relationshipbetween the video bitrate and the audio bitrate, so that the capacity ofthe video buffer area is larger than the capacity of the audio bufferarea. Since bandwidth cannot be allocated directly, an effect ofallocating more bandwidth to buffering video content can be achievedthrough a difference among the capacity of buffer areas. In addition,the capacity of the video buffer area initially configured and the audiobuffer area initially configured are reduced, thereby quickly outputtingthe initial frame of the streaming media content.

According to some embodiments, the method further includes: afterdetermining a capacity of a video buffer area and a capacity of an audiobuffer area:

in a process of playing the streaming media content, whenever a secondpreset number of video frames are played, doubling the capacity of thevideo buffer area until the capacity of the video buffer area reaches tobe half of a preset total capacity of the maximum buffering; andwhenever a second preset number of audio frames are played, doubling thecapacity of the audio buffer area until the capacity of the audio bufferarea reaches to be half of the preset total capacity of the maximumbuffering.

According to some embodiments, the capacity of the video buffer area isdoubled after every 10 frames of video content is played until thecapacity of the video buffer area reaches to be 2 MB; and the capacityof the audio buffer area is doubled after every 10 frames of audiocontent is played until the capacity of the audio buffer area reaches tobe 2 MB.

In some embodiments, in the process of playing audio and video, thecapacity of the audio buffer area and the capacity of the video bufferarea are dynamically enlarged. Thorough increasing the capacity of theaudio buffer area and the capacity of the video buffer area, the numberof buffering requests can be reduced and network congestion can beavoided.

According to some embodiments, the method further includes: afterdetermining a capacity of a video buffer area and a capacity of an audiobuffer area:

obtaining an initial frame of the video data file in the streaming mediacontent, and buffering the initial frame of the video data file in thevideo buffer area; and

obtaining an initial frame of the audio data file in the streaming mediacontent, and buffering the initial frame of the audio data file in theaudio buffer area.

In some embodiments, after the initial frame of audio content isbuffered in the audio buffer area and the initial frame of video contentis buffered in the video buffer area, the initial frame of audio contentand the initial frame of video content can be played synchronously toperform starting playing of audio and video. Since only the initialframe of audio content and the initial frame of video content arerequired to be quickly played synchronously during the starting playing,the capacity of the audio buffer area used to buffer the initial frameof audio content and the capacity of the video buffer area used tobuffer the initial frame of video content are not required to be set toolarge. In the process of playing of audio and video, the capacity of theaudio buffer area and the capacity of the video buffer area aregradually enlarged.

According to some embodiments, a device of balancing initial frame andlimiting traffic is provided, based on the method of balancing initialframe and limiting traffic according to some embodiments. Specifically,FIG. 2 illustrates a schematic diagram of a program module of a deviceof balancing initial frame and limiting traffic according to someembodiments. The device of balancing initial frame and limiting trafficis divided into one or more program modules, and the one or more programmodules are stored in a storage medium and executed by one or moreprocessors to complete the present application. The program modulesreferred to in the application refer to a series of computer-readableinstruction segments capable of performing specific functions, thefollowing description will specifically introduce the functions of eachprogram module in some embodiments.

As shown in FIG. 2, the device of balancing initial frame and limitingtraffic applied to a DASH client includes:

a first obtaining module 201, obtaining a video data file and an audiodata file of streaming media content to be played from a server, whenthe streaming media content is played using DASH.

Specifically, the first obtaining module 201 is for:

sending a request to obtain the video data file and the audio data fileto a server, and receiving the video data file and the audio data filereturned by the server.

As shown in FIG. 2, the device of balancing initial frame and limitingtraffic applied to a DASH client includes:

a second obtaining module 202, obtaining a video bitrate from the videodata file, and obtaining an audio bitrate from the audio data file.

Specifically, the second obtaining module 202 is for:

parsing the video data file to obtain video bitrate information in afile header area; and parsing the audio data file to obtain audiobitrate information in another file header area.

As shown in FIG. 2, the device of balancing initial frame and limitingtraffic applied to a DASH client includes:

a capacity determining module 203, determining a capacity of a videobuffer area and a capacity of an audio buffer area according to thevideo bitrate and the audio bitrate.

The video buffer area is a preset memory for buffering video content,and the audio buffer area is another preset memory for buffering audiocontent. In some embodiments, the capacity of the video buffer area andaudio buffering can be adjusted dynamically.

Specifically, the capacity determining module 203 is for:

calculating a first capacity required to play a first preset number ofvideo frames according to the video bitrate, and selecting the firstcapacity as the capacity of the video buffer area; and calculating asecond capacity required to play the first preset number of audio framesaccording to the audio bitrate, and selecting the second capacity as thecapacity of the audio buffer area; or

determining a proportion of audio and video bitrate according to thevideo bitrate and the audio bitrate, and dividing a preset totalcapacity of initial buffering into the capacity of the video buffer areaand the capacity of the audio buffer area according to the proportion ofaudio and video bitrate.

According to some embodiments, the device further includes:

a dynamic adjustment module, after determining a capacity of a videobuffer area and a capacity of an audio buffer area, in a process ofplaying the streaming media content, whenever a second preset number ofvideo frames are played, doubling the capacity of the video buffer areauntil the capacity of the video buffer area reaches to be half of apreset total capacity of the maximum buffering; and whenever a secondpreset number of audio frames are played, doubling the capacity of theaudio buffer area until the capacity of the audio buffer area reaches tobe half of the preset total capacity of the maximum buffering.

According to some embodiments, the device further includes:

a buffering obtaining module, after determining a capacity of a videobuffer area and a capacity of an audio buffer area, obtaining an initialframe of the video data file in the streaming media content, andbuffering the initial frame of the video data file in the video bufferarea, and obtaining an initial frame of the audio data file in thestreaming media content, and buffering the initial frame of the audiodata file in the audio buffer area.

According to some embodiments, a computing device is provided. In someembodiments, the computing device may include but not limit to at leastone of: a smartphone, a tablet computer, a notebook computer, a desktopcomputer, a rack server, a blade server, a tower server, or a rackserver (including a stand-alone server, or server cluster consisting ofmultiple servers), and so on that can execute programs. As shown in FIG.3, the computing device 30 of the embodiment includes at least, but notlimited to: a memory 301 and a processor 302 that can be communicativelyconnected to each other through a system bus. It should be noted thatFIG. 3 only shows the computing device 30 having the components 301 and302, but it should be understood that not all components shown arerequired to be implemented, and more or fewer components may beimplemented instead.

In some embodiments, the memory 301 (i.e., a readable storage medium)includes a flash memory, a hard disk, a multimedia card, a card-typememory (such as SD or DX memory and so on), a random access memory(RAM), a static random access memory (SRAM), a read-only memory (ROM),an electrically erasable programmable read-only memory (EEPROM), aprogrammable read-only memory (PROM), magnetic memory, magnetic disks,optical disks and so on. In some embodiments, the memory 301 may be aninternal storage unit of the computing device 30, such as a hard disk ora memory of the computing device 30. In other embodiments, the memory301 may also be an external storage device of the computing device 30,such as a plug-in hard disk, a smart media card (SMC), and a SecureDigital (SD) card, a Flash Card and so on. Of course, the memory 301 mayalso include both the internal storage unit of the computing device 30and its external storage device. In some embodiments, the memory 301 isgenerally used to store an operating system and various types ofapplication software installed in the computing device 30, such asprogram codes of the device of balancing initial frame and limitingtraffic according to some embodiments as described above. In addition,the memory 301 can also be used to temporarily store various types ofdata that have been output or will be output.

The processor 302 may be a Central Processing Unit (CPU), a controller,a microcontroller, a microprocessor, or other data processing chips insome embodiments. The processor 302 is generally used to control theoverall operation of the computing device 30.

Specifically, in some embodiments, the processor 302 is configured toexecute a program of a method of balancing initial frame and limitingtraffic stored in the processor 302, and when the program of the methodof balancing initial frame and limiting traffic is executed, thefollowing steps are implemented:

obtaining a video data file and an audio data file of streaming mediacontent to be played from a server, when the streaming media content isplayed using DASH;

obtaining a video bitrate from the video data file, and obtaining anaudio bitrate from the audio data file; and

determining a capacity of a video buffer area and a capacity of an audiobuffer area according to the video bitrate and the audio bitrate.

Some specific embodiments and process of the foregoing method steps canrefer to the corresponding embodiments as described above, which are notrepeatedly described herein.

According to some embodiments, a non-transitory computer-readablestorage medium (volatile or nonvolatile) is provided. In someembodiments, the non-transitory computer-readable storage medium mayinclude but not limit to at least one of: a flash memory, a hard disk, amultimedia card, a card-type memory (for example, SD or DX memory and soon), a random access memory (RAM), a static random access memory (SRAM),a read-only memory (ROM), an electrically erasable programmableread-only memory (EEPROM), a programmable read-only memory (PROM), amagnetic memory, magnetic disks, optical disks, servers, App Store andso on, which stores computer-readable instructions that upon executionby a processor cause the processor to implement the following steps:

obtaining a video data file and an audio data file of streaming mediacontent to be played from a server, when the streaming media content isplayed using DASH;

obtaining a video bitrate from the video data file, and obtaining anaudio bitrate from the audio data file; and

determining a capacity of a video buffer area and a capacity of an audiobuffer area according to the video bitrate and the audio bitrate.

Some specific embodiments and process of the foregoing method steps canrefer to the corresponding embodiments as described above, which are notrepeatedly described herein.

The method and device of balancing initial frame and limiting traffic, acomputing device, and a readable storage medium provided in the presentapplication can configure the capacity of the video buffer area and thecapacity of the audio buffer area according to the proportionalrelationship between the video bitrate and the audio bitrate, so thatthe capacity of the video buffer area is larger than the capacity of theaudio buffer area, which causes the video content to occupy morebandwidth during a buffering process, improves the downloading speed ofdownloading video content, and enables the same number of frames ofvideo content and audio content to be downloaded in the same time. Inaddition, the capacity of the initial buffer area is limited so that acapacity of the initial video buffer area and a capacity of the initialaudio buffer area can buffer the initial frame of video content and toinitial frame of audio content, thereby achieving an effect of quicklyoutputting the initial frame of the streaming media content. In theprocess of playing audio and video, the capacity of the audio bufferarea and the capacity of the video buffer area are dynamically enlarged.Through increasing the capacity of the audio buffer area and thecapacity of the video buffer area, times of buffering requests can bereduced and network congestion can be avoided.

It should be noted that, in this article, the terms “including”,“comprising” or any other variants thereof are intended to covernon-exclusive inclusion, so that a process, method, article or deviceincluding a series of elements includes not only those elements, butalso includes other elements not explicitly listed, or elements inherentto such a process, method, article, or device. Without morerestrictions, an element limited by the sentence “including a . . . ”does not exclude that there are other identical elements in the process,method, article, or device that includes the element.

The above-mentioned serial numbers of the embodiments of the presentapplication are merely for description and do not represent thesuperiority or inferiority of the embodiments.

Through the description of the above embodiments, those skilled in theart can clearly understand that the methods in the above embodiments canbe implemented by means of software plus a necessary universal hardwareplatform, and of course, also by hardware, but in many cases, the formeris the better implementation.

The above are only some embodiments of the present application, and thusdo not limit the scope of the present application, any equivalentstructure or equivalent process transformation made by using thecontents of the specification and drawings of the present application,or directly or indirectly used in other related technical fields areboth included in the scope of protection of this application.

What is claimed is:
 1. A method, comprising: obtaining a video data fileand an audio data file of streaming media content to be played from aserver, when the streaming media content is played using DynamicAdaptive Streaming over HTTP (DASH); obtaining a video bitrate from thevideo data file, and obtaining an audio bitrate from the audio datafile; determining a capacity of a video buffer area and a capacity of anaudio buffer area according to the video bitrate and the audio bitrate;and in a process of playing the streaming media content, whenever asecond preset number of video frames are played, doubling the capacityof the video buffer area until the capacity of the video buffer areareaches to be half of a preset total capacity of the maximum buffering;and whenever a second preset number of audio frames are played, doublingthe capacity of the audio buffer area until the capacity of the audiobuffer area reaches to be half of the preset total capacity of themaximum buffering.
 2. The method of claim 1, wherein determining thecapacity of the video buffer area and the capacity of the audio bufferarea further comprises: calculating a first capacity required to play afirst preset number of video frames according to the video bitrate, andselecting the first capacity as the capacity of the video buffer area;and calculating a second capacity required to play the first presetnumber of audio frames according to the audio bitrate, and selecting thesecond capacity as the capacity of the audio buffer area.
 3. The methodof claim 1, wherein determining the capacity of the video buffer areaand the capacity of the audio buffer area further comprises: determininga proportion of audio and video bitrate according to the video bitrateand the audio bitrate; and dividing a preset total capacity of initialbuffering into the capacity of the video buffer area and the capacity ofthe audio buffer area according to the proportion of audio and videobitrate.
 4. The method of claim 1, further comprising, after determiningthe capacity of the video buffer area and the capacity of the audiobuffer area: obtaining an initial frame of the video data file in thestreaming media content, and buffering the initial frame of the videodata file in the video buffer area; and obtaining an initial frame ofthe audio data file in the streaming media content, and buffering theinitial frame of the audio data file in the audio buffer area.
 5. Themethod of claim 1, wherein the capacity of the video buffer area islarger than the capacity of the audio buffer area.
 6. A computingdevice, comprising: one or more processors; and one or morenon-transitory computer-readable storage mediums containing instructionsconfigured to cause the one or more processors to perform operationsincluding: obtaining a video data file and an audio data file ofstreaming media content to be played from a server, when the streamingmedia content is played using Dynamic Adaptive Streaming over HTTP(DASH); obtaining a video bitrate from the video data file, andobtaining an audio bitrate from the audio data file; determining acapacity of a video buffer area and a capacity of an audio buffer areaaccording to the video bitrate and the audio bitrate; and in a processof playing the streaming media content, whenever a second preset numberof video frames are played, doubling the capacity of the video bufferarea until the capacity of the video buffer area reaches to be half of apreset total capacity of the maximum buffering; and whenever a secondpreset number of audio frames are played, doubling the capacity of theaudio buffer area until the capacity of the audio buffer area reaches tobe half of the preset total capacity of the maximum buffering.
 7. Thecomputing device of claim 6, wherein determining the capacity of thevideo buffer area and the capacity of the audio buffer area furthercomprises: calculating a first capacity required to play a first presetnumber of video frames according to the video bitrate, and selecting thefirst capacity as the capacity of the video buffer area; and calculatinga second capacity required to play the first preset number of audioframes according to the audio bitrate, and selecting the second capacityas the capacity of the audio buffer area.
 8. The computing device ofclaim 6, wherein determining the capacity of the video buffer area andthe capacity of the audio buffer area further comprises: determining aproportion of audio and video bitrate according to the video bitrate andthe audio bitrate; and dividing a preset total capacity of initialbuffering into the capacity of the video buffer area and the capacity ofthe audio buffer area according to the proportion of audio and videobitrate.
 9. The computing device of claim 6, wherein the one or moreprograms further comprises instructions for, after determining thecapacity of the video buffer area and the capacity of the audio bufferarea: obtaining an initial frame of the video data file in the streamingmedia content, and buffering the initial frame of the video data file inthe video buffer area; and obtaining an initial frame of the audio datafile in the streaming media content, and buffering the initial frame ofthe audio data file in the audio buffer area.
 10. The computing deviceof claim 6, wherein the capacity of the video buffer area is larger thanthe capacity of the audio buffer area.
 11. A non-transitorycomputer-program product tangibly embodied in a machine-readablenon-transitory storage medium that includes instructions configured tocause one or more processors to: obtain a video data file and an audiodata file of streaming media content to be played from a server, whenthe streaming media content is played using Dynamic Adaptive Streamingover HTTP (DASH); obtain a video bitrate from the video data file, andobtain an audio bitrate from the audio data file; determine a capacityof a video buffer area and a capacity of an audio buffer area accordingto the video bitrate and the audio bitrate; and in a process of playingthe streaming media content, whenever a second preset number of videoframes are played, doubling the capacity of the video buffer area untilthe capacity of the video buffer area reaches to be half of a presettotal capacity of the maximum buffering; and whenever a second presetnumber of audio frames are played, doubling the capacity of the audiobuffer area until the capacity of the audio buffer area reaches to behalf of the preset total capacity of the maximum buffering.
 12. Thenon-transitory computer-program product of claim 11, wherein determiningthe capacity of the video buffer area and the capacity of the audiobuffer area further comprises: calculating a first capacity required toplay a first preset number of video frames according to the videobitrate, and selecting the first capacity as the capacity of the videobuffer area; and calculating a second capacity required to play thefirst preset number of audio frames according to the audio bitrate, andselecting the second capacity as the capacity of the audio buffer area.13. The non-transitory computer-program product of claim 11, whereindetermining the capacity of the video buffer area and the capacity ofthe audio buffer area further comprises: determining a proportion ofaudio and video bitrate according to the video bitrate and the audiobitrate, and dividing a preset total capacity of initial buffering intothe capacity of the video buffer area and the capacity of the audiobuffer area according to the proportion of audio and video bitrate. 14.The non-transitory computer-program product of claim 13, furthercomprising instructions causing the one or more processors to, afterdetermining the capacity of the video buffer area and the capacity ofthe audio buffer area: obtaining an initial frame of the video data filein the streaming media content, and buffering the initial frame of thevideo data file in the video buffer area; and obtaining an initial frameof the audio data file in the streaming media content, and buffering theinitial frame of the audio data file in the audio buffer area.